package cn.itrip.dao;

import cn.itrip.beans.pojo.ItripHotelOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItripHotelOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ItripHotelOrder record);

    ItripHotelOrder selectByPrimaryKey(Long id);

    List<ItripHotelOrder> selectAll();

    int updateByPrimaryKey(ItripHotelOrder record);

    Long selectMaxId();

    ItripHotelOrder selectByOrderNo(String orderNo);

    int updatePaySuccess(ItripHotelOrder order);

    List<ItripHotelOrder> selectByUserId(@Param("userId") Long userId,@Param("pageNo") Integer pageNo,@Param("pageSize") Integer pageSize);

    Integer count(Long userId);
}